<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>神剑发布工具</title>
  <link rel="stylesheet" href="//lib.baomitu.com/bulma/0.7.2/css/bulma.min.css">
  <style>
    [v-cloak] { display: none; }
  </style>
</head>
<body>
  
  <section class="hero is-dark">
    <div class="hero-body">
      <div class="container">
        <p class="title">
          神剑爬虫管理工具
        </p>
      </div>
    </div>
  </section>

  <section id="app" class="section" v-cloak>
    <table class="table is-bordered is-striped is-hoverable is-fullwidth">
      <thead>
        <tr>
          <th>爬虫名</th>
          <th>AppID</th>
          <th>文件名</th>
          <th width="200">编译时间</th>
          <th width="170">操作</th>
        </tr>
        <tr>
          <td colspan="5">
            <input class="input" type="text" v-model="search" placeholder="搜索: 爬虫名, AppID, 文件名, 支持正则...">
          </td>
        </tr>
      </thead>
      <tbody>
        <tr v-for="it of filteredList" :key="it.appid">
          <td>{{ it.name }}</td>
          <td>{{ it.appid }}</td>
          <td>{{ it.file }}</td>
          <td>{{ it.time || '未编译' }}</td>
          <td>
            <a class="button is-small is-info" @click="build(it)">编译</a>
            <a class="button is-small is-primary" @click="release(it)">发布</a>
            <a class="button is-small is-link" target="_blank" :href="'https://www.shenjian.io/index.php?r=crawler/code&app_id=' + it.appid">打开</a>
          </td>
        </tr>
      </tbody>
    </table>
  </section>

<script src="//lib.baomitu.com/jquery/2.2.4/jquery.min.js"></script>
<script src="//lib.baomitu.com/vue/2.5.17/vue.min.js"></script>
<script src="/index.js"></script>
</body>
</html>